# encoding: utf-8
class LanguageMajoritiesController < ApplicationController
  before_filter :login_required
  
  def index
    render :json => LanguageMajority.find(:all)
  end
  
  def show
    render :json => LanguageMajority.find_by_code(params[:code])
  end
end